﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Collections;

namespace GPCSC.Webs
{
    public class DataReturn
    {
        public DataReturn()
        { 
        
        }

        public DataSet ReturnData(Hashtable htable, string SqlName)
        {
            DataSet ds = new DataSet();
            ds = new SqlReadXml().ReaderDataSet(SqlName,htable);
            if (ds.Tables.Count > 0)
            {
                return ds;
            }
            else
            {
                return null;
            }
        }

    }
}